#pragma once 

#include <iostream>
#include "Protocols.hpp"

class Task
{
    private:
        int sock;
        CallBack handler; //设置回调

    public:
        Task(){}
        Task(int _sock)
            :sock(_sock)
        {}

        void ProcessOn()
        {
            handler(sock); //通过回调函数来处理任务
        }

        ~Task(){}
};
